package com.huafeng.attendance.action;

import com.opensymphony.xwork2.ActionSupport;
import com.huafeng.attendance.bean.Attendance;
import com.huafeng.attendance.service.AttendanceService;

/**
 * Attendance 查看Action
 * @author waysoft
 */
@SuppressWarnings("serial")
public class ViewAttendanceAction extends ActionSupport {
	private Attendance attendance;
	private AttendanceService service;

	/**
	 * 详细显示
	 */
	@SuppressWarnings("unchecked")
	public String view() {
		attendance = this.service.findByAttend_id(attendance.getAttend_id());
		return "view";
	}
	
	public Attendance getAttendance() {
		return attendance;
	}

	public void setAttendance(Attendance attendance) {
		this.attendance = attendance;
	}

	public AttendanceService getService() {
		return service;
	}

	public void setService(AttendanceService service) {
		this.service = service;
	}
}
